package cz.muni.fi.pa036is.dto;

import java.io.Serializable;

/**
 *
 * @author Shebik
 */
public class CommentFormTO implements Serializable {

    private Long matchId;
    private String name;
    private String text;

    public Long getMatchId() {
        return matchId;
    }

    public void setMatchId(Long matchId) {
        this.matchId = matchId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final CommentFormTO other = (CommentFormTO) obj;
        if (this.matchId != other.matchId && (this.matchId == null || !this.matchId.equals(other.matchId))) {
            return false;
        }
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
            return false;
        }
        if ((this.text == null) ? (other.text != null) : !this.text.equals(other.text)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + (this.matchId != null ? this.matchId.hashCode() : 0);
        hash = 41 * hash + (this.name != null ? this.name.hashCode() : 0);
        hash = 41 * hash + (this.text != null ? this.text.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "CommentFormTO{"
                + "matchId=" + matchId
                + "name=" + name
                + "text=" + text + '}';
    }


}
